<template>
  <div class="popup-container">
    <h3 class="popup-title">游戏简介</h3>
    <div class="popup-content-1">
      <template v-for="item in gameIndct.introduction">
        <p class="content-title" style="margin-top: 15px;">{{ item.title }}</p>
        <p>{{ item.content }}</p>
      </template>
    </div>
    <h3 class="popup-title">硬件需求</h3>
    <div class="popup-content-2">
      <div style="border: 1px solid;padding: 5px;">
        <p>
          <span class="content-title">最低配置：</span>
        </p>
        <template v-for="item in gameIndct.minimumConfiguration">
          <p>
            <span class="content-title">{{ item.title }}</span>
            <span>{{ item.content }}</span>
          </p>
        </template>
      </div>
      <div style="border: 1px solid;padding: 5px;margin-top: 15px;">
        <p>
          <span class="content-title">推荐配置：</span>
        </p>
        <template v-for="item in gameIndct.recommendedConfiguration">
          <p>
            <span class="content-title">{{ item.title }}</span>
            <span>{{ item.content }}</span>
          </p>
        </template>
      </div>
    </div>
  </div>
</template>

<script setup>
import { defineProps } from 'vue';

const props = defineProps({
  gameIndct: Object
})

</script>

<style scoped>
.popup-container {
  margin: 0 12px;
  padding-bottom: 15px;
}
.popup-title {
  line-height: 22px;
  font-size: 17px;
  font-weight: 600;
  color: #323233;
}

.popup-content-1 {
  margin-top: 10px;
  line-height: 20px;
  font-size: 14px;
  color: #323233;
}
.content-title {
  font-weight: 600;
}

.popup-content-2 {
  margin-top: 10px;
  line-height: 20px;
  font-size: 12px;
  color: #323233;
}
</style>
